
<%@ page import="com.pijunn.label.Label" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'label.label', default: 'Label')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-label" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-label" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list label">
			
				<g:if test="${labelInstance?.serialNumber}">
				<li class="fieldcontain">
					<span id="serialNumber-label" class="property-label"><g:message code="label.serialNumber.label" default="Serial Number" /></span>
					
						<span class="property-value" aria-labelledby="serialNumber-label"><g:fieldValue bean="${labelInstance}" field="serialNumber"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.registrationDate}">
				<li class="fieldcontain">
					<span id="registrationDate-label" class="property-label"><g:message code="label.registrationDate.label" default="Registration Date" /></span>
					
						<span class="property-value" aria-labelledby="registrationDate-label"><g:formatDate date="${labelInstance?.registrationDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.creationDate}">
				<li class="fieldcontain">
					<span id="creationDate-label" class="property-label"><g:message code="label.creationDate.label" default="Creation Date" /></span>
					
						<span class="property-value" aria-labelledby="creationDate-label"><g:formatDate date="${labelInstance?.creationDate}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.createdByUserName}">
				<li class="fieldcontain">
					<span id="createdByUserName-label" class="property-label"><g:message code="label.createdByUserName.label" default="Created By User Name" /></span>
					
						<span class="property-value" aria-labelledby="createdByUserName-label"><g:fieldValue bean="${labelInstance}" field="createdByUserName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.item}">
				<li class="fieldcontain">
					<span id="item-label" class="property-label"><g:message code="label.item.label" default="Item" /></span>
					
						<span class="property-value" aria-labelledby="item-label"><g:link controller="labeledItem" action="show" id="${labelInstance?.item?.id}">${labelInstance?.item?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.registeredTo}">
				<li class="fieldcontain">
					<span id="registeredTo-label" class="property-label"><g:message code="label.registeredTo.label" default="Registered To" /></span>
					
						<span class="property-value" aria-labelledby="registeredTo-label"><g:link controller="appUser" action="show" id="${labelInstance?.registeredTo?.id}">${labelInstance?.registeredTo?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${labelInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="label.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${labelInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${labelInstance?.id}" />
					<g:link class="edit" action="edit" id="${labelInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
